<template>
	<view class="content">
		<!-- 账单列表 -->
		<monthlyExpense ref="monthlyExpense"></monthlyExpense>
		<view class="recordList_box">
			<recordList class="wh100" ref="recordList"></recordList>
		</view>
	</view>
</template>

<script>
	import monthlyExpense from '@/components/home/module/monthlyExpense.vue';
	import recordList from '@/components/home/module/recordList.vue';
	export default {
		name: "home_index",
		data() {
			return {

			}
		},
		components: {
			monthlyExpense: monthlyExpense,
			recordList: recordList
		},
		computed: {

		},
		methods: {
			//刷新数据
			refresh(){
				//刷新顶部数据
				this.$refs.monthlyExpense.refresh();
				//刷新列表
				this.$refs.recordList.refresh();
			},
		}
	}
</script>

<style lang="scss">
	.content {
		width: 100%;
		height: 100%;
		display: flex;
		flex-direction: column;
		.recordList_box {
			flex: 1;
		}
	}
</style>
